package com.ambercrm.tools;

import android.widget.Toast;

import com.ambercrm.base.MyApplication;

/**
 * Created by Administrator on 2016/10/18.
 */

public class ToastUtils {

	public static void showToast(String text) {
		if (text != null) {
			Toast.makeText(MyApplication.getApplicationInstance(), text, Toast.LENGTH_SHORT).show();
		}
	}

	public static void showToast(int resource) {
		Toast.makeText(MyApplication.getApplicationInstance(), resource, Toast.LENGTH_SHORT).show();
	}
}
